﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
           @if (false)
   {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
   }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

         <script>
             if (top.boardtop) {
                 top.boardtop.head_txt.innerText = "计划总结上报查询";
                 top.boardtop.showChooseYear(@ViewData["dqyear"], @ViewData["maxyear"], @ViewData["minyear"], rootPath + "/Admin/PlanSummaryReportQuery?year=");
             }

         function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnSave":
                    {
                        form1.submit();
                        break;
                    }

            }
        }


    </script>
</head>
<body>
    @using (Html.BeginForm("GetExcel", "PlanSummaryReportQuery", FormMethod.Post, new { id = "form1" }))
    {
        
        <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);

       settings.Items.Add(item =>
       {
           item.Name = "btnSave";
           item.Text = "导出Excel";
           item.ClientEnabled = true;
           item.Image.Url = Url.Content("~/Content/ControlImages/filesave.png");

       });

       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()
    </div>
        <br />
       <div style ="text-align:center; width:90%;font-weight: bold;font-size: 22px;text-align:center;"> @ViewData["title"] </div>
    <br />
        <div>
    <table  id="position" width="90%" align="center" border="0" class="tableForm" style=" font-size:12px">
<tr>
<th style=" text-align:center">科室名称</th>
<th style=" text-align:center">一月</th>
<th style=" text-align:center">二月</th>
<th style=" text-align:center">三月</th>
<th style=" text-align:center">四月</th>
<th style=" text-align:center">五月</th>
<th style=" text-align:center">六月</th>
<th style=" text-align:center">七月</th>
<th style=" text-align:center">八月</th>
<th style=" text-align:center">九月</th>
<th style=" text-align:center">十月</th>
<th style=" text-align:center">十一月</th>
<th style=" text-align:center">十二月</th>
<th style=" text-align:center">本年未按时上报次数</th>
</tr>
        @Html.Raw(ViewData["table"].ToString())
        </table>
    </div>
                @Html.Hidden("hdyear", ViewData["year"]);   
    }
</body>
</html>
